﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace EncryptDecryptUtil
{
    public partial class EncryptDecryptForm : Form
    {
        public EncryptDecryptForm()
        {
            InitializeComponent();
        }

        private void btnEncrypt_Click(object sender, EventArgs e)
        {
            tbEncrypted.Text = Cryptography.Encrypt(tbDecrypted.Text);
        }

        private void btnDecrypt_Click(object sender, EventArgs e)
        {
            tbDecrypted.Text = Cryptography.Decrypt(tbEncrypted.Text);
        }
    }
}
